extends "../calxJS_Hide/calxJS_Hide.gd"
func _init():
	pass
func _extInit():
	._extInit()
	chaName = "伊乐"                   # 角色的名称
	attCoe.atkRan = 1                 # 攻击距离
	attCoe.maxHp = 6                 # 最大生命（每点代表112.5基础数值，取整数，下同）
	attCoe.atk = 7                    # 攻击力（每点代表8.5）
	attCoe.mgiAtk = 3                 # 魔法攻击（每点代表13.7）
	attCoe.def = 5                    # 物理防御（每点代表15）
	attCoe.mgiDef = 5                 # 魔法防御（每点代表16.6）
	atkEff = "atk_dao" 
	xb = "光"
	lv = 3   
	addSkillTxt("[魂耀拳]使用魂耀拳攻击目标2次，每次造成75%无属性物理伤害，每次回复自身10%已损失体力值[CD:10]")
	addSkillTxt("[传说之星]挥动拳头发出传说光辉攻击敌方全体，造成110%光系物理伤害，并<混乱>3秒[CD:14]")
	addSkillTxt("[天降正义]迅雷般高高跃起，使用重拳轰击目标，造成105%光系物理伤害，并清除目标身上增益[CD:6]")
	addCdSkill("hyq",10)
	addCdSkill("cszx",14)
	addCdSkill("tjzy",6)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "hyq":
		var eff = sys.newEff("numHit", position, false, 1)
		eff.setText("魂耀拳", "#FF0099")
		eff.anim.set_speed_scale(0.2)
		for i in range(2):
			alxHurtCha(aiCha,att.atk*0.75,Chara.HurtType.PHY,Chara.AtkType.SKILL)
			plusHp((att.maxHp-att.hp)*0.1)
	if id == "cszx":
		var chas = getAllChas(1)
		var eff = sys.newEff("numHit", position, false, 1)
		eff.setText("传说之星", "#FF0099")
		eff.anim.set_speed_scale(0.2)
		for i in chas:
			typeHurtCha(i,att.atk*1.1,Chara.HurtType.PHY,Chara.AtkType.SKILL)
			i.addBuff(bf.hunluan.new(3))
	if id == "tjzy":
		var eff = sys.newEff("numHit", position, false, 1)
		eff.setText("天降正义", "#FF0099")
		eff.anim.set_speed_scale(0.2)
		typeHurtCha(aiCha,att.atk*1.05,Chara.HurtType.PHY,Chara.AtkType.SKILL)
		for j in aiCha.buffs:
			if not j.isNegetive && j.get("type") != config.EQUITYPE_EQUI && j.get("dispelable") != true:
				j.isDel = true